package com.fnzn.entranceGuard.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.fnzn.entranceGuard.entity.InitialQrManage;
import com.fnzn.entranceGuard.mapper.InitialQrManageMapper;
import com.fnzn.entranceGuard.service.IInitialQrManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 初始二维码管理 服务实现类
 * </p>
 *
 * @author JokerGao
 * @since 2018-06-29
 */
@Service
public class InitialQrManageServiceImpl extends ServiceImpl<InitialQrManageMapper, InitialQrManage> implements IInitialQrManageService {

    @Autowired
    private InitialQrManageMapper initialQrManageMapper;

    @Override
    public List<InitialQrManage> getByType(String type) {
        return initialQrManageMapper.getByType(type);
    }

    @Override
    public List<InitialQrManage> getByTypeAndCommunityId(String type, String communityId) {
        return initialQrManageMapper.getByTypeAndCommunityId(type, communityId);
    }

    @Override
    public List<InitialQrManage> getByTypeAndCommunityIdAndBuildingId(String type, String communityId, String buildingId) {
        return initialQrManageMapper.getByTypeAndCommunityIdAndBuildingId(type, communityId, buildingId);
    }

    @Override
    public List<InitialQrManage> getByTypeAndCommunityIdAndBuildingIdAndUnitId(String type, String communityId, String buildingId, String unitId) {
        return initialQrManageMapper.getByTypeAndCommunityIdAndBuildingIdAndUnitId(type, communityId, buildingId, unitId);
    }

}
